import Layout from '@/layout'

const logRouter = {
  path: '/log',
  component: Layout,
  name: 'Log',
  meta: {
    title: '记录',
    icon: 'user',
    roles: ['user', 'editor']
  },
  children: [
    {
      path: 'power_log',
      name: 'Tree',
      component: () => import('@/views/log/power_log'),
      meta: { title: '电量管理', icon: 'shopping', roles: ['editor'] }
    },
    {
      path: 'operate_log',
      name: 'Tree',
      component: () => import('@/views/log/operate_log'),
      meta: { title: '操作记录', icon: 'shopping', roles: ['editor'] }
    },
    {
      path: 'online_log',
      name: 'Tree',
      component: () => import('@/views/log/online_log'),
      meta: { title: '上线记录', icon: 'shopping', roles: ['editor'] }
    }
  ]
}

export default logRouter
